// 推荐的组件一屏横向展示四个头像
<template>
  <div class="recommend-view">
    <div v-for="(item,index) in datas" :key="index" class="item-recommend-view">
      <img :src="item.image" alt />
      <div>{{item.title}}</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    datas: {
      type: Array,
      default: function() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.recommend-view {
  display: flex;
  font-size: 12px;
  padding: 10px 0 16px;
}
.item-recommend-view {
  flex: 1;
  text-align: center;
}

.item-recommend-view img {
  width: 47px;
  height: 47px;
  margin-bottom: 4px;
}
</style>
